<?php
include_once("../include/init.php");

	if(!isset($_SESSION['user'])){
		msg("请先登录","login.php");
		exit;
	}


	$did = $_GET['did'];

	foreach($_SESSION['goods'] as $vo){
		if($vo['pid']!==$did){
			$arr[] = $vo;

		}
	}
	$_SESSION['goods'] = $arr;

	 header("location:./cart.php");

?>